<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<!--main-->
<div class="main">
	<div class="col-left">
    	<div class="crumbs"><a href="<?php echo siteurl($siteid);?>">首页</a><span> > </span><?php echo catpos($catid);?> 列表</div>
    	

     <?php $n=1;if(is_array(subcat(0,0,0,$siteid))) foreach(subcat(0,0,0,$siteid) AS $r) { ?>
          <?php if($r['catid']==61|| $r['catid']==7 || $r['catid']==67 ) continue;?>
        <?php $num++?>
      
            
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=14ca52705c6b0178dcdae6d6b5acc356&action=lists&catid=%24r%5Bcatid%5D&num=100&order=id+DESC&return=info&moreinfo=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$info = $content_tag->lists(array('catid'=>$r[catid],'order'=>'id DESC','moreinfo'=>'1','limit'=>'100',));}?>

                <ul id="mainlist" class="list lh24 f14">
               	<div class="cat_title">
<span class="scroll_top"><a href="javascript:scroll(0,0)" _hover-ignore="1">[ ↑返回顶部 ]</a></span>
<a class="cat_title_link" href="<?php echo $r['url'];?>" target="_blank" title="<?php echo $r['catname'];?>"<?php echo title_style($v[style]);?>><?php echo $r['catname'];?></a>
</div>

                <?php $n=1;if(is_array($info)) foreach($info AS $v) { ?>
	
					<li style="padding-left:10px;">
	
					
				 <a href="<?php echo $v['url'];?>" target="_blank" title="<?php echo $v['title'];?>"<?php echo title_style($v[style]);?>><?php echo str_cut($v['title'],100);?></a><a style='text-decoration:none;color:#83939B'>(<?php echo date('m-d',$v[inputtime]);?>阅<?php echo get_views('c-'.$CATEGORYS[$r[catid]][modelid].'-'.$v['id']);?>次)</a>
									 <?php if(date(time()) -$v['inputtime']<3600*24*3) { ?>
<img src="<?php echo IMG_PATH;?>new.gif"  alt="最近3天之内"/>

<?php } ?>
					</li>
                <?php $n++;}unset($n); ?>
                </ul>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
       
      <?php if($num%2==0) { ?><?php } ?>
		<?php $n++;}unset($n); ?>  
  </div>
    <div class="col-auto">
        <div class="box">
            <h5 class="title-2">点击总排行</h5>
            
            <?php $n=1;if(is_array(subcat(0,0,0,$siteid))) foreach(subcat(0,0,0,$siteid) AS $r) { ?>
          <?php if($r['catid']==61|| $r['catid']==7 || $r['catid']==67 ) continue;?>
        <?php $num++?>
        
             <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=b32655a3f709c76c9c640e260120c5b4&action=hits&catid=%24r%5Bcatid%5D&num=2&order=views+DESC&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$tag_cache_name = md5(implode('&',array('catid'=>$r[catid],'order'=>'views DESC',)).'b32655a3f709c76c9c640e260120c5b4');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$data = $content_tag->hits(array('catid'=>$r[catid],'order'=>'views DESC','limit'=>'2',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
            <ul class="content digg">
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
					<li><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['title'];?></a></li>
				<?php $n++;}unset($n); ?>
            </ul>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            
            <?php if($num%2==0) { ?><?php } ?>
		<?php $n++;}unset($n); ?> 
        </div>
        <div class="bk10"></div>
        <div class="box">
            <h5 class="title-2">本月点击排行</h5>
                
            <?php $n=1;if(is_array(subcat(0,0,0,$siteid))) foreach(subcat(0,0,0,$siteid) AS $r) { ?>
          <?php if($r['catid']==61|| $r['catid']==7 || $r['catid']==67 ) continue;?>
        <?php $num++?>
             <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=a770545fb184dec46cc0f1634b5b0cba&action=hits&catid=%24r%5Bcatid%5D&num=2&order=monthviews+DESC&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$tag_cache_name = md5(implode('&',array('catid'=>$r[catid],'order'=>'monthviews DESC',)).'a770545fb184dec46cc0f1634b5b0cba');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$data = $content_tag->hits(array('catid'=>$r[catid],'order'=>'monthviews DESC','limit'=>'2',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
            <ul class="content rank">
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
				<li><span><?php echo number_format($r[monthviews]);?></span><a href="<?php echo $r['url'];?>"<?php echo title_style($r[style]);?> class="title" title="<?php echo $r['title'];?>"><?php echo str_cut($r[title],56,'...');?></a></li>
				<?php $n++;}unset($n); ?>
            </ul>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                  <?php if($num%2==0) { ?><?php } ?>
		<?php $n++;}unset($n); ?> 
        </div>
    </div>
</div>
<?php include template("content","footer"); ?>